package org.jvending.provisioning.stocking.par.impl;

public class ClientBundleTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {
  public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();
    return _1;
  }

  public java.lang.String getPreferredPrefix(java.lang.String pURI) {
    if (pURI == null) {
      pURI = "";
    }
    if (pURI.equals("http://java.sun.com/xml/ns/j2ee-cp")) {
      return "j2ee-cp";
    }
    return null;
  }

  public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.jvending.provisioning.stocking.par.ClientBundleType _1 = (org.jvending.provisioning.stocking.par.ClientBundleType) pObject;
    java.lang.String _2 = _1.getContentId();
    if (_2 != null) {
      pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "content-id", _1.getContentId());
    }
    java.lang.String _3 = _1.getVersion();
    if (_3 != null) {
      pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "version", _1.getVersion());
    }
    java.lang.String _4 = _1.getBundleType();
    if (_4 != null) {
      pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "bundle-type", _1.getBundleType());
    }
    org.jvending.provisioning.stocking.par.DescriptorFileType _5 = _1.getDescriptorFile();
    if (_5 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _6 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.DescriptorFile.class).getDriver();
      pController.marshal(_6, "http://java.sun.com/xml/ns/j2ee-cp", "descriptor-file", _1.getDescriptorFile());
    }
    org.jvending.provisioning.stocking.par.ContentFileType _7 = _1.getContentFile();
    if (_7 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _8 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.ContentFile.class).getDriver();
      pController.marshal(_8, "http://java.sun.com/xml/ns/j2ee-cp", "content-file", _1.getContentFile());
    }
    org.jvending.provisioning.stocking.par.ToolDescriptionsType _9 = _1.getToolDescriptions();
    if (_9 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _10 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.ToolDescriptions.class).getDriver();
      pController.marshal(_10, "http://java.sun.com/xml/ns/j2ee-cp", "tool-descriptions", _1.getToolDescriptions());
    }
    org.jvending.provisioning.stocking.par.UserDescriptionsType _11 = _1.getUserDescriptions();
    if (_11 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _12 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.UserDescriptions.class).getDriver();
      pController.marshal(_12, "http://java.sun.com/xml/ns/j2ee-cp", "user-descriptions", _1.getUserDescriptions());
    }
    java.util.List _13 = _1.getPreview();
    for (int _14 = 0;  _14 < (_13).size();  _14++) {
      org.apache.ws.jaxme.impl.JMSAXDriver _15 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.Preview.class).getDriver();
      pController.marshal(_15, "http://java.sun.com/xml/ns/j2ee-cp", "preview", (org.jvending.provisioning.stocking.par.PreviewType)_13.get(_14));
    }
    org.jvending.provisioning.stocking.par.VendorInfoType _16 = _1.getVendorInfo();
    if (_16 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _17 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.VendorInfo.class).getDriver();
      pController.marshal(_17, "http://java.sun.com/xml/ns/j2ee-cp", "vendor-info", _1.getVendorInfo());
    }
    java.util.List _18 = _1.getCopyright();
    for (int _19 = 0;  _19 < (_18).size();  _19++) {
      org.apache.ws.jaxme.impl.JMSAXDriver _20 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.Copyright.class).getDriver();
      pController.marshal(_20, "http://java.sun.com/xml/ns/j2ee-cp", "copyright", (org.jvending.provisioning.stocking.par.CopyrightType)_18.get(_19));
    }
    java.util.List _21 = _1.getDeviceRequirement();
    for (int _22 = 0;  _22 < (_21).size();  _22++) {
      org.apache.ws.jaxme.impl.JMSAXDriver _23 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.DeviceRequirement.class).getDriver();
      pController.marshal(_23, "http://java.sun.com/xml/ns/j2ee-cp", "device-requirement", (org.jvending.provisioning.stocking.par.DeviceRequirementType)_21.get(_22));
    }
    java.util.List _24 = _1.getCatalogProperty();
    for (int _25 = 0;  _25 < (_24).size();  _25++) {
      org.apache.ws.jaxme.impl.JMSAXDriver _26 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.CatalogProperty.class).getDriver();
      pController.marshal(_26, "http://java.sun.com/xml/ns/j2ee-cp", "catalog-property", (org.jvending.provisioning.stocking.par.CatalogPropertyType)_24.get(_25));
    }
  }

}
